<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>04头条热榜</title>
    <style>
        body,
        ul,
        li {
            padding: 0;
            margin: 0;
            list-style-type: none;
            color: #333;
            font-size: 14px;
        }

        a {
            text-decoration: none;
            color: #333;
        }

        .center {
            width: 600px;
            /* 
                让自己在浏览器居中位置
            */
            margin: 0 auto;
            /* background-color: skyblue; */
            /* 
                内容文本居中显示
            */
            text-align: center;
        }

        .center h1 {
            font-size: 20px;
            font-weight: 700;
            line-height: 20px;
            color: pink;
        }

        .center h1::before {
            display: inline-block;
            height: 20px;
            width: 20px;
            content: "";
            background-image: url(https://lf-dw.toutiaostatic.com/obj/toutiao-duanwai/toutiao/toutiao_web_pc/svgs/hot_board.e124faac.svg);
            position: relative;
            top: 3px;
            text-align: center;
        }

        .ranking li {
            text-align: left;
            margin-top: 4px;
        }

        .ranking li:nth-child(1) .order-number {
            color: red;
        }

        .ranking li:nth-child(2) .order-number {
            color: orange;
        }

        .ranking li:nth-child(3) .order-number {
            color: skyblue;
        }

        .ranking .item-content {
            display: inline-block;
            height: 24px;
            line-height: 24px;
        }

        .ranking .icon {
            display: inline-block;
            height: 16px;
            width: 16px;
            position: relative;
            top: 3px;
            margin-left: 8px;

        }

        .ranking .exploded {
            background-image: url(https://lf-dw.toutiaostatic.com/obj/toutiao-duanwai/toutiao/toutiao_web_pc/svgs/hotboard_boom.10506442.svg);
            ;
        }

        .ranking .hot {
            background-image: url(https://lf-dw.toutiaostatic.com/obj/toutiao-duanwai/toutiao/toutiao_web_pc/svgs/hotboard_hot.428fe145.svg);
        }
    </style>
</head>

<body>
    <div class="center">
        <h1>头条热榜</h1>
        <ul class="ranking">
            <li class="item">
                <a href="#">
                    <span class="order-number">1</span>
                    <div class="item-content">高水平开放 中国脚步不停滞</div>
                    <i class="icon exploded"></i>
                </a>
            </li>
            <li class="item">
                <a href="#">
                    <span class="order-number">2</span>
                    <div class="item-content">神十八航天员乘组平安抵京</div>
                    <i class="icon hot"></i>
                </a>
            </li>

            <li class="item">
                <a href="#">
                    <span class="order-number">3</span>
                    <div class="item-content">神十八载人飞行任务取得圆满成功</div>
                    <i class="icon hot"></i>
                </a>
            </li>

            <li class="item">
                <a href="#">
                    <span class="order-number">4</span>
                    <div class="item-content">航天员称仿佛坐在炼丹炉里回到地球</div>
                    <i class="icon"></i>
                </a>
            </li>

            <li class="item">
                <a href="#">
                    <span class="order-number">5</span>
                    <div class="item-content">重庆政法委书记陆克华被查</div>
                    <i class="icon"></i>
                </a>
            </li>

            <li class="item">
                <a href="#">
                    <span class="order-number">6</span>
                    <div class="item-content">民调：哈里斯特朗普支持率目前持平</div>
                    <i class="icon"></i>
                </a>
            </li>

            <li class="item">
                <a href="#">
                    <span class="order-number">7</span>
                    <div class="item-content">全网老公都在回答吃几个瑞士卷</div>
                    <i class="icon"></i>
                </a>
            </li>

            <li class="item">
                <a href="#">
                    <span class="order-number">8</span>
                    <div class="item-content">神十八航天员乘组平安抵京</div>
                    <i class="icon hot"></i>
                </a>
            </li>

            <li class="item">
                <a href="#">
                    <span class="order-number">9</span>
                    <div class="item-content">共享单车运营方回应大学生夜奔开封</div>
                    <i class="icon"></i>
                </a>
            </li>

            <li class="item">
                <a href="#">
                    <span class="order-number">10</span>
                    <div class="item-content">男孩捂晕小女孩后未被立案？警方</div>
                    <i class="icon"></i>
                </a>
            </li>

        </ul>
    </div>
</body>

</html>